home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Development / 3DMF parser / 1.0 version / MF3DMac / MFMACROS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-07  |  997 b   |  36 lines  |  [TEXT/MPS ]

  1. #ifndef    MF3D_MACROS_H
  2. #define    MF3D_MACROS_H
  3. /*==============================================================================
  4.  *
  5.  *    File:        MFMACROS.H
  6.  *
  7.  *    Function:    For oft-repeated code.
  8.  *
  9.  *    Version:    Metafile:    Version 1.0 3DMF files
  10.  *                Package:    Release #2 of this code
  11.  *
  12.  *    Author(s):    Rick Wong (RWW), Duet Development Corp.
  13.  *                John Kelly (JRK), Duet Development Corp.
  14.  *
  15.  *    Copyright:    (c) 1995 by Apple Computer, Inc., all rights reserved.
  16.  *
  17.  *    Change History (most recent first):
  18.  *        FB7_JRK    Mac pragmas
  19.  *        Fabio    Changed file name to 8 characters
  20.  *        F2N_RWW    File created.
  21.  *==============================================================================
  22.  */
  23. #if defined(applec) || defined(__MWERKS__) || defined(THINK_C)
  24. #pragma once
  25. #endif
  26.  
  27. /* Suppress parameter unused warnings */
  28. #define    MF3D_Unused(x)        if (0) (x)
  29.  
  30. #define    MF3D_Allocate(ptr)    {    (ptr) = MF3D_Malloc(sizeof(*(ptr)));        \
  31.                                 if ((ptr) == NULL)                            \
  32.                                     result = kMF3DErrOutOfMemory;            \
  33.                             }
  34.  
  35. #endif
  36.